<?php
    header('Content-type:text/json');
    require "../../connection.php";
    $id = $_POST['id'];
    $option = array("id"=>$id);
    $result = $conn->where($option)->update("vip",array("status"=>-1));
    if($result){
        $msg = "删除成功";
    }else{
        $msg = "删除失败";
    }
    $data = array("status"=>"1","msg"=>$msg);
    echo json_encode($data);
?>